package com.azusa.xbjy.dao;

import com.azusa.xbjy.entity.User;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

public interface UserDao extends JpaRepository<User,Integer> {

    User findByUsernameAndPassword(String username,String password);

    User findByEmail(String email);

    User findByUsername(String username);

    User findById(int id);

    List<User> findByIdIn(List<Integer> ids);

    List<User> findByDeptId(int deptId);

    User findByWxOpenid(String wx);

}
